import { ARRAY_MAX_SIZE, IsArray, IsInt, IsNotEmpty, IsOptional, IsString, MaxLength, Min } from "class-validator";

export default class FeedbackDto {
    @MaxLength(11)
    @IsNotEmpty()
    @IsString()
    phone:string;

    @MaxLength(200)
    @IsNotEmpty()
    @IsString()
    content:string;

    @Min(1)
    @IsInt()
    typeId:number;

    
    @IsArray()
    @IsOptional()
    pics:string[];
}
